<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>

    <div id="app">
        <table>
            <tr>
                <td>id</td>
                <td>username</td>
                <td>操作</td>
            </tr>
            <tr>
                <td>{{user.id}}</td>
                <td>{{user.name}}</td>
                <td><a :href="'detail?userid='+user.id">查看用户明细</a></td>
                <td><a :href="user.id">查看用户明细</a></td>
            </tr>
        </table>

    </div>

    <script src="js/vue.min.js"></script>
    <script>
        var vue = new Vue({
            el:"#app",
            data:{
              user:{
                  id:123,
                  name:"菲菲"
              }
            }
        })

    </script>

</body>
</html>